﻿@model RazzzorTest.Models.Login.User
@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>
    Logowanie do systemu</h2>
@using (Html.BeginForm())
{ 
    <div class="errorMessage">
        <p>
            @ViewBag.ErrorMessage
        </p>
    </div>
    <div class="display-label">
        Login</div>
    <div class="display-field">@Html.TextBoxFor(Model => Model.Login)</div>
    <div class="display-label">
        Password</div>
    <div class="display-field">@Html.PasswordFor(Model => Model.Password)</div>
    <input type="submit" name="Loguj" value="Zaloguj" />
}
<p>
    @Html.ActionLink("Powrót", "Index")
</p>
